package cn.edu.tju.elm.controller.dto;

import jakarta.validation.constraints.NotNull;

public class AddToCartDto {

    @NotNull(message = "商品ID不能为空")
    private Long foodId;

    @NotNull(message = "商家ID不能为空")
    private Long businessId;

    @NotNull(message = "数量不能为空")
    private Integer quantity;

    // 构造函数、getter和setter
    public AddToCartDto() {
    }

    public Long getFoodId() {
        return foodId;
    }

    public void setFoodId(Long foodId) {
        this.foodId = foodId;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
}